package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "serverdb")
@ApiModel(description = "平台服务器-数据库表")
public class Serverdb implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @TableField(value = "server_ip")
    @ApiModelProperty(value = "平台ip")
    private String serverIp;

    @TableField(value = "server_port")
    @ApiModelProperty(value = "平台端口")
    private String serverPort;

    @ApiModelProperty(value = "平台位置")
    private String address;

    @TableField(value = "db_ip")
    @ApiModelProperty(value = "数据库ip地址")
    private String dbIp;

    @TableField(value = "db_port")
    @ApiModelProperty(value = "数据库端口")
    private String dbPort;

    @TableField(value = "db_name")
    @ApiModelProperty(value = "数据库名称")
    private String dbName;

    @TableField(value = "db_password")
    @ApiModelProperty(value = "数据库密码")
    private String dbPassword;

    @ApiModelProperty(value = "平台描述")
    private String remark;

    @ApiModelProperty(value = "备用1")
    private String by1;

    @ApiModelProperty(value = "备用2")
    private String by2;
}
